lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
↳ QTRS
↳ Overlay + Local Confluence
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
QSORT(add(N, X)) → SPLIT(N, X)
LT(s(X), s(Y)) → LT(X, Y)
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → APPEND(qsort(Y), add(X, qsort(Z)))
F_1(pair(X, Z), N, M, Y) → LT(N, M)
F_3(pair(Y, Z), N, X) → QSORT(Z)
F_1(pair(X, Z), N, M, Y) → F_2(lt(N, M), N, M, Y, X, Z)
APPEND(add(N, X), Y) → APPEND(X, Y)
SPLIT(N, add(M, Y)) → F_1(split(N, Y), N, M, Y)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
QSORT(add(N, X)) → SPLIT(N, X)
LT(s(X), s(Y)) → LT(X, Y)
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → APPEND(qsort(Y), add(X, qsort(Z)))
F_1(pair(X, Z), N, M, Y) → LT(N, M)
F_3(pair(Y, Z), N, X) → QSORT(Z)
F_1(pair(X, Z), N, M, Y) → F_2(lt(N, M), N, M, Y, X, Z)
APPEND(add(N, X), Y) → APPEND(X, Y)
SPLIT(N, add(M, Y)) → F_1(split(N, Y), N, M, Y)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
APPEND(add(N, X), Y) → APPEND(X, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
APPEND(add(N, X), Y) → APPEND(X, Y)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
APPEND(add(N, X), Y) → APPEND(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
LT(s(X), s(Y)) → LT(X, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
LT(s(X), s(Y)) → LT(X, Y)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
LT(s(X), s(Y)) → LT(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
append(nil, x0)
append(add(x0, x1), x2)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPOrderProof
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
QSORT(add(N, X)) → F_3(split(N, X), N, X)
Used ordering: Polynomial interpretation [25]:
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
POL(0) = 0
POL(F_3(x1, x2, x3)) = x1
POL(QSORT(x1)) = x1
POL(add(x1, x2)) = 1 + x2
POL(f_1(x1, x2, x3, x4)) = 1 + x1
POL(f_2(x1, x2, x3, x4, x5, x6)) = 1 + x5 + x6
POL(false) = 0
POL(lt(x1, x2)) = 0
POL(nil) = 0
POL(pair(x1, x2)) = x1 + x2
POL(s(x1)) = 0
POL(split(x1, x2)) = x2
POL(true) = 0
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
split(N, nil) → pair(nil, nil)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)